import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.Scanner;

public class mainProj
{
    private static Scanner scanner;
    private ArrayList<Manufacturer> m = new ArrayList<Manufacturer>();
    
    
    public static void main(String[] args) throws Exception
    {
        ConnectDb connectDb = new ConnectDb();
        Connection connection = connectDb.getDBConnection();
        //HAVE TO MAKE DB WITH MANUFACTURERS
        
        System.out.println("select search type");
        System.out.println("Enter 1 for searching by maker, model, year, etc.");
        System.out.println("Enter 2 for searching by vendor and part number");
        
        Scanner in = new Scanner(System.in);
        int input = in.nextInt();
        
        if(input == 1)
        {
        Query q = new Query(connection, connectDb);
        }
        else if (input == 2)
        {
            queryVendorPart q2 = new queryVendorPart(connection, connectDb);
        }
        else
        {
            System.out.println("Wrong number entered");
        }

        connectDb.disconnectFromDB();

    }

}
